<template>
	<view class="tab">
		<view class="box">
			<view @click="gopage('/pages/home/home')" class="li">
				<text class="iconfont icon-31shouyexuanzhong"></text><text>首页</text>
			</view>
			<!-- <view class="li">
				<text class="iconfont icon-mobankuangjia"></text><text>模板</text>
			</view> -->
			<view class="li" @click="gopage('/pages/myactivity/myactivity')">
				<text class="iconfont icon-huodong"></text><text>活动</text>
			</view>
			<view class="li" @click="gopage('/pages/my/my')">
				<text class="iconfont icon-my"></text><text>我的</text>
			</view>
		</view>

	</view>

</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			gopage(url) {
				uni.reLaunch({
					url
				})
			}

		},
		mounted() {


		},
	};
</script>

<style scoped lang="scss">
	.tab {
		position: fixed;
		width: 100%;
		left: 0;
		right: 0;
		bottom: 0;

		.box {
			display: flex;
			justify-content: center;
			width: 100%;
			background: #e2ebff;

			.li {
				flex: 1;
				border-top: 1px solid #DDD;
				font-size: 24rpx;
				color: #666;
				display: flex;
				height: 6vh;
				flex-direction: column;
				align-items: center;
				justify-content: center;


			}


		}
	}

	.iconfont {
		font-size: 34rpx;
		line-height: 30rpx;
	}
</style>